package cards;

import java.awt.Graphics2D;import java.awt.image.BufferedImage;

import java.awt.Image;

public class HuoGong extends InstantMagic {
	// IMPORTANT, card class doesn't rewrite paint(). it rewrite IMAGE
	public static BufferedImage image;

	public static void ImageInit(BufferedImage toBinit) {
		image = toBinit;
	}

	@Override
	public BufferedImage getImage() {
		return image;
	}
	public HuoGong(){
		this(0,0);
	}
	public HuoGong(int c, int n) {
		super(
				"HuoGong",
				c,
				n,
				"Use this card during your playing stage, targeting anyone with cards in hand. Target will show one card, if you discard a card of the same suit, you cause one hp damage to the target.");
	}
	
	@Override
	public boolean instanceOf(String superClass) {
		if(super.instanceOf(superClass)){
			return true;
		}
		if(superClass.equalsIgnoreCase("HuoGong")){
			return true;
		}
		return false;
	}
}
